#include "StdAfx.h"
#include "MediaObject.h"

MediaObject::MediaObject(void)
:m_id(0),m_file_path(_T("")),m_file_name(_T(""))
{
}

MediaObject::MediaObject(int id, CString file_path, CString file_name)
:m_id(id),m_file_path(file_path),m_file_name(file_name)
{

}
MediaObject::MediaObject(const MediaObject &item)
{
	m_id         =  item.m_id;
	m_file_path  =  item.m_file_path;
	m_file_name  =  item.m_file_name;

}

MediaObject &MediaObject::operator =(const MediaObject &item)
{
	m_id             =  item.m_id;
	m_file_path		 =  item.m_file_path;
	m_file_name		 =  item.m_file_name;
	return *this;
}

MediaObject::~MediaObject(void)
{
}


int MediaObject::GetId()
{
	return m_id;
}

void MediaObject::SetId(int i)
{
	m_id =i;
}

CString MediaObject::GetFilePath()
{
  return m_file_path;
}
void MediaObject::SetFilePath(CString fpath)
{
	m_file_path= fpath;
} 

CString MediaObject::GetFileName()
{
	return  m_file_name;
}
void MediaObject::SetFileName(CString fname)
{
	m_file_name = fname;
}
 